Skip to content

ChangeSet struct

Attributes: [DefaultMember("Item")] [DebuggerDisplay("ChangeSet: {Count}")]

Defined in

Namespace: ReactiveList.Reactive.Core Assembly: ReactiveList.Reactive.dll Full name: ReactiveList.Reactive.Core.ChangeSet<T> Modifiers: public sealed

Summary

View source (opens in a new tab)

Represents a set of changes to a collection.

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Class hierarchy
classDiagram
class ChangeSet~T~
class IReadOnlyList~Change~T~~ {
    <>
}
IReadOnlyList~Change~T~~ <|.. ChangeSet~T~
class IEnumerable~Change~T~~ {
    <>
}
IEnumerable~Change~T~~ <|.. ChangeSet~T~
class IEnumerable {
    <>
}
IEnumerable <|.. ChangeSet~T~
class IReadOnlyCollection~Change~T~~ {
    <>
}
IReadOnlyCollection~Change~T~~ <|.. ChangeSet~T~
class IDisposable {
    <>
}
IDisposable <|.. ChangeSet~T~
class IEquatable~ChangeSet~T~~ {
    <>
}
IEquatable~ChangeSet~T~~ <|.. ChangeSet~T~

Implements: IReadOnlyList> (opens in a new tab), IEnumerable> (opens in a new tab), IEnumerable (opens in a new tab), IReadOnlyCollection> (opens in a new tab), IDisposable (opens in a new tab), IEquatable> (opens in a new tab)

Remarks

        This struct stores changes in a compact array. The disposable contract is retained for binary compatibility.

Constructors

NameSummary
.ctorInitializes a new instance of the ChangeSet struct with a single change.

Properties

NameSummary
static EmptyGets an empty change set.
CountGets the number of changes in the set.
AddsGets the number of Add changes in this set.
RemovesGets the number of Remove changes in this set.
UpdatesGets the number of Update changes in this set.
MovesGets the number of Move changes in this set.
this[]Gets the change at the specified index.

Methods

NameSummary
AsSpanGets a span over the changes.
EqualsDetermines whether the specified ChangeSet is equal to the current ChangeSet.
GetHashCodeReturns a hash code for this instance.
GetEnumeratorReturns an enumerator that iterates through the changes.
DisposeRetained for compatibility. Change sets no longer own pooled storage.
ToStringReturns the fully qualified type name of this instance.

Operators

NameSummary
static op_Inequality
static op_Equality